﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;

namespace Camc.Quality.BomContrastive
{
   public class GetBomAnalysisContentListInput : PagedAndSortedInputDto, IShouldNormalize
    {
        ///// <summary>
        ///// 物料属性
        ///// </summary>
        //public string MaterialProperty { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public Guid ModelId { get; set; }
        /// <summary>
        /// 发次
        /// </summary>
        public string SendTime { get; set; }
        /// <summary>
        /// 发次
        /// </summary>
        public Guid SendTimeId { get; set; }
        /// <summary>
        /// 芯级
        /// </summary>
        public Guid XJid { get; set; }
        /// <summary>
        /// 芯级名称
        /// </summary>
        public string XJName { get; set; }
        ///// <summary>
        ///// 设计bom版本
        ///// </summary>
        //public string BomVersion { get; set; }
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "MaterialNo Desc";
            }
        }
    }
}
